#include<bits/stdc++.h>
#define pii pair<int,int>
#define fi first
#define se second
int n;
int h[100009];
using namespace std;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    cin>>n;
    for(int i=1;i<=n;++i){
        int x;
        cin>>x;
        h[x]++;
    }
    for(int i=2;i<=100000;++i){
        h[i-1]=max(0,h[i-1]-h[i]);
        h[i]+=h[i-1];
    }
    cout<<h[100000];
    return 0;
}
